package weatherwidget.isrefluxer.bird.com.birdweatherwidget;

import android.app.Application;
import android.content.Intent;

import weatherwidget.isrefluxer.bird.com.birdweatherwidget.service.UpdateService;
import weatherwidget.isrefluxer.bird.com.birdweatherwidget.until.LogUtil;

/**
 * 项目名称：BirdWeatherWidget
 * 类描述：
 * 创建人：Administrator
 * 创建时间：2016/11/19 11:40
 * 修改人：Administrator
 * 修改时间：2016/11/19 11:40
 * 修改备注：
 */
public class WidgetApplication extends Application {

    private static final String TAG = "WidgetApplication";
    private static WidgetApplication widgetApplication;

    public static WidgetApplication getInstance(){

        return widgetApplication;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        LogUtil.log(TAG,"onCreate");
        widgetApplication = (WidgetApplication) getApplicationContext();
        startService(new Intent(this,UpdateService.class));
    }
}
